package com.ruifu.proj.controller;


import com.ruifu.proj.service.PmActiveMainService;
import com.ruifu.proj.vo.pmActiveMain.PmActiveMainRecordVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author 宁义锐
 */
@RestController
@CrossOrigin
@RequestMapping("/pmActiveMain")
public class PmActiveMainController {

    @Autowired
    private PmActiveMainService pmActiveMainService;

    /**
     * 查询执行记录
     * @param ptId
     * @return
     */
    @GetMapping(value = "/findById/{ptId}")
    public List<PmActiveMainRecordVO> findRecord(@PathVariable("ptId") Long ptId) {
        return pmActiveMainService.findById(ptId);
    }
}
